GXPD 10 - QuickDraw GX and DoesPaperFit Message
Title Banner


Technical Q&A's


GXPD 10 - QuickDraw GX and DoesPaperFit Message (1-May-95)


Q Does QuickDraw GX send the DoesPaperFit message when I'm setting up input-tray dialogs, or is the driver supposed to do this? If GX doesn't, it is possible for users to use completely invalid paper sizes, which can violently crash most raster drivers.

A GX sends the DoesPaperFit message in the default implementation of the Input Trays... dialog to constrain the configuration options, and drivers that perform their own Input Trays... dialog should do the same. A driver should override this message if it needs other than the default logic, which responds that everything fits.

The packing buffer size specified in the 'rpck' resource is set to the expected maximum size needed. Unfortunately, this is far smaller than what's needed when handling larger-than-expected paper sizes. To work around this, you can set the packing buffer size so that it can accommodate the largest paper size the printer can use.

Technical Support
Technical Q&As
Previous Question | Contents | Next Question

Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help